home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group01a.txt / 000082_icon-group-sender _Fri Jun 30 12:31:59 2000.msg < prev    next >
Internet Message Format  |  2002-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id MAA12426
  4.     for icon-group-addresses; Fri, 30 Jun 2000 12:31:08 -0700 (MST)
  5. Message-Id: <200006301931.MAA12426@baskerville.CS.Arizona.EDU>
  6. From: Kostas Oikonomou <oikonomou@att.com>
  7. X-Newsgroups: comp.lang.icon
  8. Subject: Approximate comparisons of reals
  9. Date: Fri, 30 Jun 2000 11:32:55 -0400
  10. X-Accept-Language: en
  11. To: icon-group@optima.CS.Arizona.EDU
  12. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  13. Status: RO
  14. Content-Length: 550
  15.  
  16. I'm trying to write Icon procedures that implement the approximate <, >,
  17. and =
  18. relations for real numbers that are in Knuth Vol. 2, section 4.2.2, p.
  19. 218 in
  20. the 2nd ed.  I would  like to put these in a library.
  21.  
  22. It seems to me that to write such procedures efficiently one needs
  23. access to the floating
  24. point representation of reals, i.e. fractional part and exponent.
  25.  
  26. Is it possible ro access the representation of reals in Icon?  Or has
  27. someone already written something like this?
  28.  
  29.                                                        Kostas
  30.  
  31.  
  32.